package com.xuecheng.order.agent;

import com.xuecheng.api.search.dto.CoursePubIndexDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * Created on 2021/04/16/23:14 周五
 *
 * @author Lantin
 */
@FeignClient(value = XcFeignServiceNameList.XC_SEARCH_SERVICE)
public interface CoursePubSearchApiAgent {

    @GetMapping("search/l/course_index/{coursePubId}")
    RestResponse<CoursePubIndexDTO> getCoursePubById(@PathVariable Long coursePubId);
}
